package com.hon2;

import java.util.Random;

public class RandomTest {
    public static void main(String[] args) {
        Random random = new Random();
        for(int i = 0; i<10 ; i++){
            int a = random.nextInt(30);//给出参数将产生0到这个参数
            System.out.println(a);

        }

    }
}
